#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment for debhelper verbose output.
# export DH_VERBOSE=1

export SKIP_PYTHON_TESTS=1

%:
	dh $@ --with=autoreconf

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	dh_auto_configure -- --enable-python2 --enable-python3 CFLAGS="-g"

.PHONY: override_dh_install
override_dh_install:
	dh_install --fail-missing -X.la -X/pyvhdi.a

.PHONY: override_dh_strip
override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
	dh_strip -plibvhdi --dbg-package=libvhdi-dbg
	dh_strip -plibvhdi-tools --dbg-package=libvhdi-tools-dbg
	dh_strip -plibvhdi-python --dbg-package=libvhdi-python-dbg
	dh_strip -plibvhdi-python3 --dbg-package=libvhdi-python3-dbg
endif

